package sample.ws.service;

import javax.jws.WebService;
import java.util.logging.Logger;


@WebService(serviceName = "HelloService", portName = "HelloPort", targetNamespace = "http://service.ws.sample", endpointInterface = "sample.ws.service.Hello")
public class HelloPortImpl implements Hello {

    private static final Logger LOG = Logger.getLogger(HelloPortImpl.class.getName());

    public String sayHello(String myname) {
        LOG.info("Executing operation sayHello" + myname);
        try {
            return "Hello, Welcome to CXF Spring boot " + myname + "!!!";
        } catch (Exception ex) {
            ex.printStackTrace();
            throw new RuntimeException(ex);
        }
    }

}
